using System;
using System.Collections.Generic;
using System.Text;

namespace Hoshimi
{
    public class AIBot_RestState : State
	{
		#region Singleton

		// Fields
		protected static AIBot_RestState instance;

		// Constructor
		protected AIBot_RestState() : base() { }

		// Methods
		public static AIBot_RestState Instance()
		{
			// Uses "Lazy initialization"
			if( instance == null ) 
				instance = new AIBot_RestState();

			return instance;
		}

		#endregion

		#region Methods

		public override bool Play( Unit unit )
		{
			AIBot bot = (AIBot) unit;

            bot.SetName("zzZZZzzz");

            unit.myStateMachine.ChangeState( AIBot_MoveToHoshimiState.Instance() );

			return false;
		}

		#endregion
	}
}
